package factory.abs;

public class Factory<T extends SkinFactory> {
	public SkinFactory display(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException{
		SkinFactory food = (SkinFactory) Class.forName(className).newInstance();
		return food;
	}

	public SkinFactory display(Class<T> clazz) throws IllegalAccessException, InstantiationException {
		T t = clazz.newInstance();
		return t;
	}
}
